package com.atguigu.gulimall.product.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Description:
 * @Author 胡菜鸡
 * @Create 2022-01-04-9:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryLevel2Vo {
    /**
     * 1级分类ID
     */
    private Long categoryId;

    /**
     * 三集子分类
     */
    private List<CategoryLevel3Vo> catalog3List;

    /**
     * 2级分类ID
     */
    private Long id;

    /**
     * 2级分类名称
     */
    private String name;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CategoryLevel3Vo{
        private Long catalog2Id;
        private Long id;
        private String name;
    }

}
